import type { CategoryObj } from "@/api/product/attr/type";
import type { RouteRecordRaw } from "vue-router";

export interface UserState {
    token: string | '';
    menuRoutes: RouteRecordRaw[];
    username: string;
    avatar: string;
    buttons: string[]
}

//定义分类仓库state对象的ts类型
export interface CategoryState {
    c1Arr: CategoryObj[];
    c1Id: string | number;
    c2Arr: CategoryObj[];
    c2Id: string | number;
    c3Arr: CategoryObj[];
    c3Id: string | number;
}